package com.example.easycharge.repository;

import com.example.easycharge.entity.Customer;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface CustomerRepository extends JpaRepository<Customer,Long> {
    Customer findCustomerByUserName(String userName);
    Customer findCustomerByUserId(long userId);
    int countCustomerByUserId(long userId);
    int countCustomerByUserName(String userName);
}
